﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SLogBossDrop extends IMessageBase
    {
        public var id:int;
        public var day:int;
        public var logDt:Date;
        public var bossCode:int;
        public var bossName:String;
        public var mapId:int;
        public var x:int;
        public var y:int;
        public var refreshDt:Date;
        public var killDt:Date;
        public var belongPlayer:int;
        public var belongTeam:String;
        public var belongGuild:String;
        public var itemList:String;
        public const _type:int = 201;
        public static var _regist:SLogBossDrop = new SLogBossDrop(true);

        public function SLogBossDrop(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SLogBossDrop();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.id);
            param1.writeInt(this.day);
            param1.writeDate(this.logDt);
            param1.writeInt(this.bossCode);
            param1.writeString(this.bossName);
            param1.writeInt(this.mapId);
            param1.writeInt(this.x);
            param1.writeInt(this.y);
            param1.writeDate(this.refreshDt);
            param1.writeDate(this.killDt);
            param1.writeInt(this.belongPlayer);
            param1.writeString(this.belongTeam);
            param1.writeString(this.belongGuild);
            param1.writeString(this.itemList);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.id = param1.readInt();
            this.day = param1.readInt();
            this.logDt = param1.readDate();
            this.bossCode = param1.readInt();
            this.bossName = param1.readString();
            this.mapId = param1.readInt();
            this.x = param1.readInt();
            this.y = param1.readInt();
            this.refreshDt = param1.readDate();
            this.killDt = param1.readDate();
            this.belongPlayer = param1.readInt();
            this.belongTeam = param1.readString();
            this.belongGuild = param1.readString();
            this.itemList = param1.readString();
            return;
        }// end function

    }
}
